package com.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author:周鹏
 * @date: 2020/10/23 10:17
 * @description:商品实体类
 */
@Data
public class Goods {

    private Integer goodsid;
    private String goodsname;
    private Double price;
    private String address;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date produceDate;
    private String picture;
    //实体类直接关联对象容易提取数据
    private Category category;

}
